package demo11;

public class StaticStudent {
    public static void main(String[] args) {
        //首先设置一个教室，这是静态的东西，应该通过类名称进行调用
        Student.room = "4J110";

        Student one = new Student("李树强",20);
        System.out.println("学号是："+one.getID()+",姓名："+one.getName()+",年龄："+one.getAge()+",教室："+Student.room);

        System.out.println("================================");

        Student two = new Student("老四",22);
        System.out.println("学号是："+two.getID()+",姓名："+two.getName()+",年龄："+two.getAge()+",教室："+Student.room);

    }
}
